/**
 * Created by Administrator on 2019/1/1.
 */
$(function () {
    /*$('img').each(function () {
       if($(this).attr("height")>0){
           $("viewPicDiv").show();
       }
    });*/
    $('.fancybox').fancybox();
    closeWin();
});

var closeWin = function () {
    $("#close").click(function () {
        removeTabs("sh-tabs",'模具详情');
    });
}

function downloadFile(file_id) {
    /*var params = new Object();
     params.fileId = file_id;
     var jsonstr = postSyncAjax("/file/download", params);
     if(!jsonstr.success) {
     if (jsonstr.status == 401) {
     showDialogSetTime(jsonstr.msg, function () {
     window.top.location.href = "/index";
     }, 5000);
     }
     showDialogWithContent("下载失败：" + jsonstr.msg);
     return;
     }*/
    window.top.location.href = "/file/download/"+file_id;
}